#include <iostream>
#include <cmath>
using namespace std;

double f_abs (double a, double b);

int main()
{
    double x,y,absz;
    cout<<"Re(z)=";
    cin>>x;
    cout<<"Im(z)=";
    cin>>y;
    cout<<"z="<<x<<"+i"<<y<<endl;
    absz=f_abs(x,y);
    cout<<"abs(z)="<<absz;

    return 0;
}

double f_abs (double a, double b)
{
    double z=sqrt(a*a+b*b);
    return z;
}
